package schema

type StatusText string

func (t StatusText) String() string {
	return string(t)
}

const (
	OKStatus       StatusText = "OK"
	ErrorStatus    StatusText = "ERROR"
	FailStatus     StatusText = "FAIL"
	SuccessCode               = 1000
	ExceptionCode             = 1001
	FailCode                  = 500
	ErrRequestCode            = 400
	ErrServer                 = "500"
	ErrAuth                   = "Auth"
)

type WrapError struct {
	Code int
	Err  error
}

func Wrap(code int, err error) *WrapError {
	return &WrapError{
		Code: code,
		Err:  err,
	}
}
